/* 
 * File:   main.cpp
 * Author: Yujie Hao
 *
 * Created on March 17, 2013, 11:30 PM
 */

#include <cstdlib>
#include <iostream>
using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    int number;
    cout << "Please enter a number between 0 and 100:";
    cin >> number;
    
    if (number % 2 == 0 && number % 3 == 0)
    {
        cout << "This number is divisible by both 2 and 3." << endl;
    }    
    else if (number % 2 == 0 || number % 3 == 0)
    {
        if (number % 2 == 0)
        {
            cout << "This number is divisible by 2 but not 3." << endl;
        }
        else 
        {
            cout << "This number is divisible by 3 but not 2." << endl;
        }
    }
    else
    {
        cout << "This number is not divisible by 2 nor 3." << endl;
    }
        
    return 0;
}

